#ifndef TV_PROCESSOR_H
#define TV_PROCESSOR_H

#include "scanner/base_processor.h"

#include <string>

namespace Tvimeg
{
	class TVProcessor : public BaseProcessor
	{
	public:
		void			SetSeriesName(const std::string& name);

	protected:
		virtual int		AddEntry(const Entry& entry) const;
		virtual int		UpdateEntry(const Entry& entry) const;

		virtual void	RemoveEntryFiles(const int entryId) const;
		virtual void	AddEntryFile(const int fileId, const int entryId) const;

	private:
		int				GetSeriesID(void) const;
		int				GetSeasonID(const int seriesID, const int season) const;
		int				GetEpisodeID(const int seriesID, const int seasonID, const int episode) const;

		std::string		seriesName;
	};
}

#endif // TV_PROCESSOR_H
